#include "Graph.h"
#include "Simple_window.h"
#include "Arc.h"
#include <iostream>

int main()
{
	try
	{
		Simple_window win(Point(100,100), 800, 800, "Ex_1");
		Graph_lib::Arc arc(Point(400, 400), 100, 200, 0, 360); 
		arc.set_color(Color::black);
		win.attach(arc);
		Circle crcl(Point(400,400), 100);
		win.attach(crcl);
		
		
		win.wait_for_button();
	}
	catch(exception& e)
	{
		cerr << e.what() << endl; 
		system("pause");
		return 1;
	}
	catch(...)
	{
		cerr << "unknown exception " << endl; 
		system("pause");
		return 2;
	}



}